package com.yunhe.ssm.mybatis.model;

import java.util.List;

public class Page {
private int curpage;
private int pagesize;
private int pagecount;
private int totalnum;
private int selectnum;
private List<Object> result;


public int getSelectnum() {
	selectnum=(this.curpage-1)*this.pagesize;
	return selectnum;
}
public void setSelectnum(int selectnum) {
	this.selectnum = selectnum;
}
public int getCurpage() {
	return curpage;
}
public void setCurpage(int curpage) {
	this.curpage = curpage;
}
public int getPagesize() {
	return pagesize;
}
public void setPagesize(int pagesize) {
	this.pagesize = pagesize;
}
public int getPagecount() {
	if(this.totalnum%this.pagesize==0){
		pagecount=this.totalnum/this.pagesize;
	}else{
		pagecount=(this.totalnum/this.pagesize)+1;
	}
	return pagecount;
}
public void setPagecount(int pagecount) {
	this.pagecount = pagecount;
}
public int getTotalnum() {
	return totalnum;
}
public void setTotalnum(int totalnum) {
	this.totalnum = totalnum;
}
public List<Object> getResult() {
	return result;
}
public void setResult(List<Object> result) {
	this.result = result;
}


}
